FROM centos:latest
RUN groupadd -r redis && useradd  -r -g redis redis
RUN yum -y update &&  yum -y install epel-release && yum -y install redis && yum -y install net-tools

RUN mkdir -p /config && \
chown -R redis:redis /config


COPY ./config/redis-master.conf /config
ADD ./config/redis-slave.conf /config

VOLUME /www/test/docker/share_config

WORKDIR /config


EXPOSE 6379






